Optimal Reads-From Consistency Checking for C11-Style Memory Models

نویسندگان

چکیده

Over the years, several memory models have been proposed to capture subtle concurrency semantics of C/C++. One most fundamental problems associated with a model M is consistency checking: given an execution X , consistent ? This problem lies at heart numerous applications, including specification testing and litmus tests, stateless checking, dynamic analyses. As such, it has explored extensively its complexity well-understood for traditional like SC TSO. However, less known variants C/C++, which becomes challenging due intricacies their primitives. In this work we study checking popular C11 model, in particular, RC 20 release-acquire ( RA ) fragment, strong weak SRA WRA ), as well Relaxed fragment 20. Motivated by applications focus on reads-from checking. The input specifying set events, program order relation, task decide existence modification writes that makes model. We draw rich landscape problem; our results include (i) nearly-linear-time algorithms certain variants, improve over prior results, (ii) fine-grained optimality (iii) matching upper lower bounds (NP-hardness) other variants. To knowledge, first characterize models. implemented inside TruSt checker C11Tester tool. Experiments standard benchmarks show new often significant margin.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Consistency checking of SCR-style requirements specifications

This paper describes a class of formal analysis called consistency checking that mechanically checks requirements speci cations, expressed in the SCR tabular notation, for application-independent properties. Properties include domain coverage, type correctness, and determinism. As background, the SCR notation for specifying requirements is reviewed. A formal requirements model describing the me...

متن کامل

Model Checking with User-Definable Memory Consistency Models

From the viewpoint of performance and scalability, relaxed memory consistency models are common and essential for parallel/distributed programming languages in which multiple processes are able to share a single global address space, such as Partitioned Global Address Space languages. However, a problem with relaxed memory consistency models is that programming is difficult and error-prone beca...

متن کامل

Shared Memory Consistency Protocol Verification Against Weak Memory Models: Refinement via Model-Checking

Weak shared memory consistency models, especially those used by modern microprocessor families, are quite complex. The bus and/or directory-based protocols that help realize shared memory multiprocessors using these microprocessors are also exceedingly complex. Thus, the correctness problem – that all the executions generated by the multiprocessor for any given concurrent program are also allow...

متن کامل

Weak Memory Consistency Models

Process coordination problems have been extensively addressed in the context of sequential consistency. However, modern multiprocessors present a large variety of memory models that are anything but sequentially consistent. In these machines, the ordering constraints on memory accesses are few. We re-address two fundamental process coordination problems in the context of weak memory models. We ...

متن کامل

Taming the complexities of the C11 and OpenCL memory models

We study how the C11 memory model can be simplified and how it can be extended. Our first contribution is to propose a mild strengthening of the model that enables the rules pertaining to sequentially-consistent (SC) operations to be significantly simplified. We eliminate one of the total orders that candidate executions must range over, leading to a model that is significantly faster to simula...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

ژورنال

عنوان ژورنال: Proceedings of the ACM on programming languages

سال: 2023

ISSN: ['2475-1421']

DOI: https://doi.org/10.1145/3591251